Product Code Database
Example Keywords: jewel -playbook $64
   » » Help: Displaying A Formula
Tag Help 'Displaying A Formula'.
Tag
uses a subset of markup, a superset of markup which is in turn a superset of markup, for mathematical formulae. It generates images by default. Alternatively the renderer can be used, this uses a combination of HTML and CSS to display the equation, it can be selected in the .

Although, in all cases mentioned, is generated by , and not by an interpreter program, there is one essential difference between, e.g., 's or 's and the present implementation: whereas in the first two cases the compiler typically generates an all-in-one printable output, which has the quality of a whole book with all chapters, sections and subsections, and where no line is "special", in the present case one has, typically, a mixture of images (more precisely: PNG images) for the equations, embedded into usual text, and with short elements usually replaced by HTML parts. As a consequence, in many cases TeX-elements, e.g. vector symbols, "stick out" below (or above) the text line. This "sticking out" is not  the case in the above-mentioned original products, and the HTML-substitutes for small additions to the text are often insufficient in quality for many readers. In spite of these shortcomings, the present product characterized by "many embedded PNG-images" should be preferred for small texts, where the equations do not dominate.

More precisely, MediaWiki filters the markup through or , which in turn passes the commands to for the actual . Thus, only a limited part of the full language is supported; see below for details.

To have math rendered in a particular MediaWiki installation, one has to set $wgUseTeX = true; in .


Basics
Math markup goes inside <nowiki></nowiki>.

The code has to be put literally: MediaWiki templates, predefined templates, and parameters cannot be used within math tags: pairs of double braces are ignored and "#" gives an error message. However, math tags work in the then and else part of #if, etc. See for more information.


LaTeX commands
LaTeX commands are case-sensitive, and take one of the following two formats:

  • They start with a backslash \ and then have a name consisting of letters only. Command names are terminated by a space, a number or any other "non-letter".
  • They consist of a backslash \ and exactly one non-letter.

Some commands need an argument, which has to be given between curly braces { } after the command name. Some commands support optional parameters, which are added after the command name in square brackets . The general syntax is:

\commandname[option1,option2,...]{argument1}{argument2}...
     


Special characters
The following symbols are reserved characters that either have a special meaning under LaTeX or are unavailable in all the fonts. If you enter them directly in your text, they will normally not render, but rather do things you did not intend.

# $ % ^ & _ { } ~ \
     

These characters can be entered by adding a prefix backslash:

\# \$ \% \textasciicircum{} \& \_ \{ \} \~{} \textbackslash{}
     

The other symbols and many more can be rendered with special commands in mathematical formulae or as accents.

The backslash character \ can not be entered by adding another backslash in front of it (\\); this sequence is used for line breaking. For introducing a backslash in math mode, you can use \backslash instead.

The command \~ produces a tilde which is placed over the next letter. For example \~n gives ñ. To produce just the character ~, use \~{} which places a ~ over an empty box. Alternatively \sim produces a large centred ~ which may be more appropriate in some situations, but may not render properly in simple expressions which are converted to HTML.

Similarly, the command \^ produces a hat over the next character, for example \^{o} produces ô. If you need in text to display the ^ symbol you have to use \textasciicircum.


Spaces
"Whitespace" characters, such as blank or tab, are treated uniformly as "space" by LaTeX. Several consecutive whitespace characters are treated as one "space". See for commands that produces spaces of different size.


LaTeX environments
Environments in LaTeX have a role that is quite similar to commands, but they usually have effect on a wider part of formula. Their syntax is:

\begin{environmentname}
  text to be influenced
\end{environmentname}
     

Environments supported by Wikipedia include matrix, align, etc. See .


Rendering
e^{i \pi} 1 = 0\,\!e^{i \pi} 1 = 0\,\!\definecolor{red}{RGB}{255,0,0}\pagecolor{red}e^{i \pi} 1 = 0\,\!

By default, the PNG images are rendered black on white, with a transparent background. On darker backgrounds, the characters may show white edges. To remove these, match the PNG background color with the background color of the page using \pagecolor. However, black text on a dark background is hard to read and should be avoided altogether where possible.

The colors, as well as font sizes and types, are independent of browser settings or CSS. Font sizes and types will often deviate from what HTML renders. Vertical alignment with the surrounding text can also be a problem (see ). The of the images is img.tex.

The of the PNG images, which is displayed to visually impaired and other readers who cannot see the images, and is also used when the text is selected and copied, defaults to the wikitext that produced the image, excluding the <nowiki></nowiki> and <nowiki></nowiki>. You can override this by explicitly specifying an alt attribute for the math element. For example, <nowiki></nowiki> generates an image \sqrt{\pi} whose alt text is "Square root of pi". This should not be confused with the title attribute that produces popup text when the hovering over the PNG image, for example <nowiki></nowiki> generates an image \pi whose popup text is "pi".

Apart from function and operator names, as is customary in mathematics, variables and letters are in italics; digits are not. For other text, (like variable labels) to avoid being rendered in italics like variables, use \text, \mbox, or \mathrm. You can also define new function names using \operatorname{...}. For example, <nowiki></nowiki> gives \text{abc}. This does not work for special characters, they are ignored unless the whole <math> ... </math> expression is rendered in HTML:

  • <nowiki></nowiki>
gives:
  • \begin{align}
\text{ AaȦȧÄäÁáÀàĀāÂâǍǎĂăÃãÅåẠạ } & \text{ ÆæǼǽ BbḂḃḄḅḆḇ CcĊċĆćĈĉČč Çç DdḊḋĎďḎḏḌḍ Ḑḑ } \\ \text{ EeĖėËëÉéÈèĒēÊêĚěĔĕẼẽẸẹ Ȩȩ } & \text{ FfḞḟ GgĠġḠḡĜĝǦǧĞğ HhḢḣḦḧĤĥȞȟḤḥẖḪḫ Ḩḩ } \\ \text{ IıİiÏïÍíÌìĪīÎîǏǐĬĭĨĩỊị } & \text{ JjĴĵ KkḰḱǨǩḲḳḴḵ Ķķ LlĹ弾ḶḷḺḻ ĻļŁł } \\ & \text{ MmṀṁḾḿṂṃ NnṄṅŃńŇňÑñṆṇṈṉ Ņņ} \\ \text{ OoȮȯÖöÓóÒòŌōÔôǑǒŎŏÕõỌọ } & \text{ ØøǾǿ Œœ PpṖṗṔṕ Qq RrṘṙŔŕŘřṚṛṞṟ Ŗŗ } \\ & \text{ SsṠṡŚśŜŝŠšṢṣ Şş ß TtṪṫẗŤťṬṭṮṯȚț Ţţ } \\ \text{ UuÜüÚúŰűÙùŪūÛûǓǔŬŭŨũŮůỤụ } & \text{ VvṼṽṾṿ WwẆẇẄẅẂẃẀẁŴŵẈẉẘ XxẊẋẌẍ } \\ \text{ YyẎẏŸÿÝýỲỳȲȳŶŷỸỹẙỴỵ } & \text{ ZzŻżŹźẐẑŽžẒẓẔẕ ·×÷ } \\ \end{align}

See for details. Nevertheless, using \mbox instead of \text, more characters may have been supported in the past, but today both operators are supporting the same characters set. For example,

  • <nowiki></nowiki>
gives:
  • \begin{align}
\mbox{ AaȦȧÄäÁáÀàĀāÂâǍǎĂăÃãÅåẠạ } & \text{ ÆæǼǽ BbḂḃḄḅḆḇ CcĊċĆćĈĉČč Çç DdḊḋĎďḎḏḌḍ Ḑḑ } \\ \mbox{ EeĖėËëÉéÈèĒēÊêĚěĔĕẼẽẸẹ Ȩȩ } & \text{ FfḞḟ GgĠġḠḡĜĝǦǧĞğ HhḢḣḦḧĤĥȞȟḤḥẖḪḫ Ḩḩ } \\ \mbox{ IıİiÏïÍíÌìĪīÎîǏǐĬĭĨĩỊị } & \text{ JjĴĵ KkḰḱǨǩḲḳḴḵ Ķķ LlĹ弾ḶḷḺḻ ĻļŁł } \\ & \text{ MmṀṁḾḿṂṃ NnṄṅŃńŇňÑñṆṇṈṉ Ņņ} \\ \mbox{ OoȮȯÖöÓóÒòŌōÔôǑǒŎŏÕõỌọ } & \text{ ØøǾǿ Œœ PpṖṗṔṕ Qq RrṘṙŔŕŘřṚṛṞṟ Ŗŗ } \\ & \text{ SsṠṡŚśŜŝŠšṢṣ Ṣṣ Şş ß TtṪṫẗŤťṬṭṮṯȚț Ţţ } \\ \mbox{ UuÜüÚúŰűÙùŪūÛûǓǔŬŭŨũŮůỤụ } & \text{ VvṼṽṾṿ WwẆẇẄẅẂẃẀẁŴŵẈẉẘ XxẊẋẌẍ } \\ \text{ YyẎẏŸÿÝýỲỳȲȳŶŷỸỹẙỴỵ } & \text{ ZzŻżŹźẐẑŽžẒẓẔẕ ·×÷ } \\ \end{align}

But some Latin letters are not supported, including those that include multiple diacritics (e.g. with Latin letters used in Vietnamese) or that cannot be precomposed into a single character (such as the uppercase Latin letter W with ring, even though the lowercase letter is supported as it is encoded as a precomposed character), or that use other diacritics (like the ogonek or the double grave accent, used in Central European languages like Polish, or the horn attached above some vowels in Vietnamese), or other modified letter forms (used in IPA notations, or African languages, or in medieval texts), some digram ligatures (like IJ in Dutch), or Latin letters borrowed from Greek, or small capitals, as well as superscripts abd subscript letters. For example \text{ð} or \mbox{ð}, and \mbox{þ} or \mbox{þ} (used in Icelandic) will give an error:

  • \text{ð}, \mbox{ð}
  • \text{þ}, \mbox{þ}


vs HTML
Before introducing markup for producing special characters, it should be noted that, as this comparison table shows, sometimes similar results can be achieved in HTML (see ).

<nowiki></nowiki>\alpha\,\!<nowiki></nowiki>
<nowiki></nowiki> f(x) = x^2\,\!<nowiki></nowiki>
<nowiki></nowiki>\sqrt{2}<nowiki></nowiki>
<nowiki></nowiki>\sqrt{1-e^2}\!<nowiki></nowiki>

The codes on the left produce the symbols on the right, but the latter can also be put directly in the wikitext, except for ‘=’.

&alpha; &beta; &gamma; &delta; &epsilon; &zeta;
&eta; &theta; &iota; &kappa; &lambda; &mu; &nu;
&xi; &omicron; &pi; &rho; &sigma; &sigmaf;
&tau; &upsilon; &phi; &chi; &psi; &omega;
&Gamma; &Delta; &Theta; &Lambda; &Xi; &Pi;
&Sigma; &Phi; &Psi; &Omega;
α β γ δ ε ζ
η θ ι κ λ μ ν
ξ ο π ρ σ ς
τ υ φ χ ψ ω
Γ Δ Θ Λ Ξ Π
Σ Φ Ψ Ω
&int; &sum; &prod; &radic; &minus; &plusmn; &infin;
&asymp; &prop;  &equiv; &ne; &le; &ge;
&times; &middot; &sdot; &divide; &part; &prime; &Prime;
&nabla; &permil; &deg; &there4; &Oslash; &oslash
∫ ∑ ∏ √ − ± ∞
≈ ∝ = ≡ ≠ ≤ ≥
× · ⋅ ÷ ∂ ′ ″
∇ ‰ ° ∴ Ø ø
&isin; &notin; &cap; &cup; &sub; &sup; &sube; &supe;
&not; &and; &or; &exist; &forall;
&rArr; &hArr; &rarr; &harr; &uarr;
&alefsym; - &ndash; &mdash;
∈ ∉ ∩ ∪ ⊂ ⊃ ⊆ ⊇
¬ ∧ ∨ ∃ ∀
⇒ ⇔ → ↔ ↑
ℵ - – —

The project has settled on both HTML and because each has advantages in some situations.


Pros of HTML
  1. Formulas in HTML behave more like regular text. In-line HTML formulae always align properly with the rest of the HTML text and, to some degree, can be copied-and-pasted (this is not a problem if is rendered using , and the alignment should not be a problem for PNG rendering once is fixed).
  2. The formula’s background and font size match the rest of HTML contents (this can be fixed on formulas by using the commands ) and the appearance respects CSS and browser settings while the typeface is conveniently altered to help you identify formulae.
  3. Pages using HTML code for formulae will load faster and they will create less clutter on your hard disk.
  4. Formulae typeset with HTML code will be accessible to client-side script links (a.k.a. scriptlets).
  5. The display of a formula entered using mathematical templates can be conveniently altered by modifying the templates involved; this modification will affect all relevant formulae without any manual intervention.
  6. The HTML code, if entered diligently, will contain all semantic information to transform the equation back to or any other code as needed. It can even contain differences does not normally catch, e.g. <nowiki></nowiki> for the and <nowiki></nowiki> for an arbitrary index variable.
  7. Unlike generated bitmaps, HTML is not sensitive to variances between viewing platforms.


Pros of
  1. is semantically more precise than HTML.
    1. In , "<nowiki></nowiki>" means "mathematical variable x", whereas in HTML "x" is generic and somewhat ambiguous.
    2. On the other hand, if you encode the same formula as "<nowiki></nowiki>", you get the same visual result and no information is lost. This requires diligence and more typing that could make the formula harder to understand as you type it. However, since there are far more readers than editors, this effort is worth considering if no other rendering options are available (such as , which was requested on for use on Wikimedia wikis and is being implemented on as a new rendering option).
  2. One consequence of point 1 is that code can be transformed into HTML, but not vice-versa. This means that on the server side we can always transform a formula, based on its complexity and location within the text, user preferences, type of browser, etc. Therefore, where possible, all the benefits of HTML can be retained, together with the benefits of . It is true that the current situation is not ideal, but that is not a good reason to drop information/contents. It is more a reason to .
  3. Another consequence of point 1 is that can be converted to (e.g. by MathJax) for browsers which support it, thus keeping its semantics and allowing the rendering to be better suited for the reader’s graphic device.
  4. is the preferred text formatting language of most professional mathematicians, scientists, and engineers. It is easier to persuade them to contribute if they can write in .
  5. has been specifically designed for typesetting formulae, so input is easier and more natural if you are accustomed to it, and output is more aesthetically pleasing if you focus on a single formula rather than on the whole containing page.
  6. Once a formula is done correctly in , it will render reliably, whereas the success of HTML formulae is somewhat dependent on browsers or versions of browsers. Another aspect of this dependency is fonts: the serif font used for rendering formulae is browser-dependent and it may be missing some important glyphs. While the browser generally capable to substitute a matching glyph from a different font family, it need not be the case for combined glyphs (compare ‘   ’ and ‘   ’).
  7. When writing in , editors need not worry about whether this or that version of this or that browser supports this or that HTML entity. The burden of these decisions is put on the software. This does not hold for HTML formulae, which can easily end up being rendered wrongly or differently from the editor’s intentions on a different browser.
  8. formulae, by default, render larger and are usually more readable than HTML formulae and are not dependent on client-side browser resources, such as fonts, and so the results are more reliably WYSIWYG.
  9. While does not assist you in finding HTML codes or Unicode values (which you can obtain by viewing the HTML source in your browser), copying and pasting from a PNG image in Wikipedia into simple text will return the LaTeX source.

unless your wikitext follows the style of point 1.2
The entity support problem is not limited to mathematical formulae though; it can be easily solved by using the corresponding characters instead of entities, as the character repertoire links do, except for cases where the corresponding glyphs are visually indiscernible (e.g. &ndash; for ‘–’ and &minus; for ‘−’).

In some cases it may be the best choice to use neither nor the HTML substitutes, but instead the simple ASCII symbols of a standard keyboard (see hereafter, for an example).


MathJax
The renderer, selectable through , uses a very different system to the standard texvc renderer. Rather than rendering a static image on the server side a combination of JavaScript, HTML and CSS is used to locally construct the formula. This allows for high-quality typesetting, and other problems such as font sizes not matching your browser settings or wrong baselines are fixed as well. MathJax may also reduce the download time of images but it entails a small delay as the JavaScript interpreter runs to render the formulas.

Alternatively to the preferences option, MathJax can also be selected using the user script. It is the basis for the global option, and hence more experimental but also more up to date. Bug reports are taken care of at the script's .

The quality of font rendering is dependent on your browser and operating system. Speed and appearance can be improved by installing the ; for installation details see the MathJax font help page. Further information is also available at .


Formatting using

Functions, symbols, special characters
\dot{a}, \ddot{a}, \acute{a}, \grave{a} \dot{a}, \ddot{a}, \acute{a}, \grave{a} \!
\check{a}, \breve{a}, \tilde{a}, \bar{a} \check{a}, \breve{a}, \tilde{a}, \bar{a} \!
\hat{a}, \widehat{a}, \vec{a} \hat{a}, \widehat{a}, \vec{a} \!
\exp_a b = a^b, \exp b = e^b, 10^m \exp_a b = a^b, \exp b = e^b, 10^m \!
\ln c, \lg d = \log e, \log_{10} f \ln c, \lg d = \log e, \log_{10} f \!
\sin a, \cos b, \tan c, \cot d, \sec e, \csc f\sin a, \cos b, \tan c, \cot d, \sec e, \csc f\!
\arcsin h, \arccos i, \arctan j \arcsin h, \arccos i, \arctan j \!
\sinh k, \cosh l, \tanh m, \coth n \sinh k, \cosh l, \tanh m, \coth n \!
\operatorname{sh}\,k, \operatorname{ch}\,l, \operatorname{th}\,m, \operatorname{coth}\,n \operatorname{sh}\,k, \operatorname{ch}\,l, \operatorname{th}\,m, \operatorname{coth}\,n \!
\operatorname{argsh}\,o, \operatorname{argch}\,p, \operatorname{argth}\,q \operatorname{argsh}\,o, \operatorname{argch}\,p, \operatorname{argth}\,q \!
\sgn r, \left\vert s \right\vert \sgn r, \left\vert s \right\vert \!
\min(x,y), \max(x,y) \min(x,y), \max(x,y) \!
\min x, \max y, \inf s, \sup t \min x, \max y, \inf s, \sup t \!
\lim u, \liminf v, \limsup w \lim u, \liminf v, \limsup w \!
\dim p, \deg q, \det m, \ker\phi \dim p, \deg q, \det m, \ker\phi \!
\Pr j, \hom l, \lVert z \rVert, \arg z \Pr j, \hom l, \lVert z \rVert, \arg z \!
dt, \operatorname{d}\!t, \partial t, \nabla\psidt, \operatorname{d}\!t, \partial t, \nabla\psi\!
dy/dx, \operatorname{d}\!y/\operatorname{d}\!x, {dy \over dx}, {\operatorname{d}\!y\over\operatorname{d}\!x}, {\partial^2\over\partial x_1\partial x_2}y dy/dx, \operatorname{d}\!y/\operatorname{d}\!x, {dy \over dx}, {\operatorname{d}\!y\over\operatorname{d}\!x}, {\partial^2\over\partial x_1\partial x_2}y \!
\prime, \backprime, f^\prime, f', f'<nowiki/>', f^{(3)}, \dot y, \ddot y \prime, \backprime, f^\prime, f', f'', f^{(3)} \!, \dot y, \ddot y
\infty, \aleph, \complement, \backepsilon, \eth, \Finv, \hbar \infty, \aleph, \complement, \backepsilon, \eth, \Finv, \hbar \!
\Im, \imath, \jmath, \Bbbk, \ell, \mho, \wp, \Re, \circledS \Im, \imath, \jmath, \Bbbk, \ell, \mho, \wp, \Re, \circledS \!
s_k \equiv 0 \pmod{m} s_k \equiv 0 \pmod{m} \!
a\,\bmod\,b a\,\bmod\,b \!
\gcd(m, n), \operatorname{lcm}(m, n)\gcd(m, n), \operatorname{lcm}(m, n)
\mid, \nmid, \shortmid, \nshortmid \mid, \nmid, \shortmid, \nshortmid \!
\surd, \sqrt{2}, \sqrt[n]{}, \sqrt[3]{x^3 y^3 \over 2} \surd, \sqrt{2}, \sqrtn{}, \sqrt3{x^3 y^3 \over 2} \!
, -, \pm, \mp, \dotplus , -, \pm, \mp, \dotplus \!
\times, \div, \divideontimes, /, \backslash \times, \div, \divideontimes, /, \backslash \!
\cdot, * \ast, \star, \circ, \bullet \cdot, * \ast, \star, \circ, \bullet \!
\boxplus, \boxminus, \boxtimes, \boxdot \boxplus, \boxminus, \boxtimes, \boxdot \!
\oplus, \ominus, \otimes, \oslash, \odot\oplus, \ominus, \otimes, \oslash, \odot\!
\circleddash, \circledcirc, \circledast \circleddash, \circledcirc, \circledast \!
\bigoplus, \bigotimes, \bigodot \bigoplus, \bigotimes, \bigodot \!
\{ \}, \O \empty \emptyset, \varnothing \{ \}, \O \empty \emptyset, \varnothing \!
\in, \notin \not\in, \ni, \not\ni \in, \notin \not\in, \ni, \not\ni \!
\cap, \Cap, \sqcap, \bigcap \cap, \Cap, \sqcap, \bigcap \!
\cup, \Cup, \sqcup, \bigcup, \bigsqcup, \uplus, \biguplus \cup, \Cup, \sqcup, \bigcup, \bigsqcup, \uplus, \biguplus \!
\setminus, \smallsetminus, \times \setminus, \smallsetminus, \times \!
\subset, \Subset, \sqsubset \subset, \Subset, \sqsubset \!
\supset, \Supset, \sqsupset \supset, \Supset, \sqsupset \!
\subseteq, \nsubseteq, \subsetneq, \varsubsetneq, \sqsubseteq \subseteq, \nsubseteq, \subsetneq, \varsubsetneq, \sqsubseteq \!
\supseteq, \nsupseteq, \supsetneq, \varsupsetneq, \sqsupseteq \supseteq, \nsupseteq, \supsetneq, \varsupsetneq, \sqsupseteq \!
\subseteqq, \nsubseteqq, \subsetneqq, \varsubsetneqq \subseteqq, \nsubseteqq, \subsetneqq, \varsubsetneqq \!
\supseteqq, \nsupseteqq, \supsetneqq, \varsupsetneqq \supseteqq, \nsupseteqq, \supsetneqq, \varsupsetneqq \!
=, \ne \neq, \equiv, \not\equiv =, \ne \neq, \equiv, \not\equiv \!
\doteq, \doteqdot, \overset{\underset{\mathrm{def}}{}}{=}, := \doteq, \doteqdot, \overset{\underset{\mathrm{def}}{}}{=}, := \!
\sim, \nsim, \backsim, \thicksim, \simeq, \backsimeq, \eqsim, \cong, \ncong \sim, \nsim, \backsim, \thicksim, \simeq, \backsimeq, \eqsim, \cong, \ncong \!
\approx, \thickapprox, \approxeq, \asymp, \propto, \varpropto \approx, \thickapprox, \approxeq, \asymp, \propto, \varpropto \!
<, \nless, \ll, \not\ll, \lll, \not\lll, \lessdot <, \nless, \ll, \not\ll, \lll, \not\lll, \lessdot \!
>, \ngtr, \gg, \not\gg, \ggg, \not\ggg, \gtrdot >, \ngtr, \gg, \not\gg, \ggg, \not\ggg, \gtrdot \!
\le \leq, \lneq, \leqq, \nleqq, \lneqq, \lvertneqq \le \leq, \lneq, \leqq, \nleqq, \lneqq, \lvertneqq \!
\ge \geq, \gneq, \geqq, \ngeqq, \gneqq, \gvertneqq \ge \geq, \gneq, \geqq, \ngeqq, \gneqq, \gvertneqq \!
\lessgtr \lesseqgtr \lesseqqgtr \gtrless \gtreqless \gtreqqless \lessgtr \lesseqgtr \lesseqqgtr \gtrless \gtreqless \gtreqqless \!
\leqslant, \nleqslant, \eqslantless \leqslant, \nleqslant, \eqslantless \!
\geqslant, \ngeqslant, \eqslantgtr \geqslant, \ngeqslant, \eqslantgtr \!
\lesssim, \lnsim, \lessapprox, \lnapprox \lesssim, \lnsim, \lessapprox, \lnapprox \!
\gtrsim, \gnsim, \gtrapprox, \gnapprox \gtrsim, \gnsim, \gtrapprox, \gnapprox \,
\prec, \nprec, \preceq, \npreceq, \precneqq \prec, \nprec, \preceq, \npreceq, \precneqq \!
\succ, \nsucc, \succeq, \nsucceq, \succneqq \succ, \nsucc, \succeq, \nsucceq, \succneqq \!
\preccurlyeq, \curlyeqprec \preccurlyeq, \curlyeqprec \,
\succcurlyeq, \curlyeqsucc \succcurlyeq, \curlyeqsucc \,
\precsim, \precnsim, \precapprox, \precnapprox \precsim, \precnsim, \precapprox, \precnapprox \,
\succsim, \succnsim, \succapprox, \succnapprox \succsim, \succnsim, \succapprox, \succnapprox \,
\parallel, \nparallel, \shortparallel, \nshortparallel \parallel, \nparallel, \shortparallel, \nshortparallel \!
\perp, \angle, \sphericalangle, \measuredangle, 45^\circ \perp, \angle, \sphericalangle, \measuredangle, 45^\circ \!
\Box, \blacksquare, \diamond, \Diamond \lozenge, \blacklozenge, \bigstar \Box, \blacksquare, \diamond, \Diamond \lozenge, \blacklozenge, \bigstar \!
\bigcirc, \triangle \bigtriangleup, \bigtriangledown \bigcirc, \triangle \bigtriangleup, \bigtriangledown \!
\vartriangle, \triangledown \vartriangle, \triangledown\!
\blacktriangle, \blacktriangledown, \blacktriangleleft, \blacktriangleright \blacktriangle, \blacktriangledown, \blacktriangleleft, \blacktriangleright \!
\forall, \exists, \nexists \forall, \exists, \nexists \!
\therefore, \because, \And \therefore, \because, \And \!
\or \lor \vee, \curlyvee, \bigvee \or \lor \vee, \curlyvee, \bigvee \!
\and \land \wedge, \curlywedge, \bigwedge \and \land \wedge, \curlywedge, \bigwedge \!
\bar{q}, \bar{abc}, \overline{q}, \overline{abc},
\lnot \neg, \not\operatorname{R}, \bot, \top
\bar{q}, \bar{abc}, \overline{q}, \overline{abc}, \!
\lnot \neg, \not\operatorname{R}, \bot, \top \!
\vdash \dashv, \vDash, \Vdash, \models \vdash \dashv, \vDash, \Vdash, \models \!
\Vvdash \nvdash \nVdash \nvDash \nVDash \Vvdash \nvdash \nVdash \nvDash \nVDash \!
\ulcorner \urcorner \llcorner \lrcorner \ulcorner \urcorner \llcorner \lrcorner \,
\Rrightarrow, \Lleftarrow \Rrightarrow, \Lleftarrow \!
\Rightarrow, \nRightarrow, \Longrightarrow \implies \Rightarrow, \nRightarrow, \Longrightarrow \implies\!
\Leftarrow, \nLeftarrow, \Longleftarrow \Leftarrow, \nLeftarrow, \Longleftarrow \!
\Leftrightarrow, \nLeftrightarrow, \Longleftrightarrow \iff \Leftrightarrow, \nLeftrightarrow, \Longleftrightarrow \iff \!
\Uparrow, \Downarrow, \Updownarrow \Uparrow, \Downarrow, \Updownarrow \!
\rightarrow \to, \nrightarrow, \longrightarrow \rightarrow \to, \nrightarrow, \longrightarrow\!
\leftarrow \gets, \nleftarrow, \longleftarrow \leftarrow \gets, \nleftarrow, \longleftarrow\!
\leftrightarrow, \nleftrightarrow, \longleftrightarrow \leftrightarrow, \nleftrightarrow, \longleftrightarrow \!
\uparrow, \downarrow, \updownarrow \uparrow, \downarrow, \updownarrow \!
\nearrow, \swarrow, \nwarrow, \searrow \nearrow, \swarrow, \nwarrow, \searrow \!
\mapsto, \longmapsto \mapsto, \longmapsto \!
\rightharpoonup \rightharpoondown \leftharpoonup \leftharpoondown \upharpoonleft \upharpoonright \downharpoonleft \downharpoonright \rightleftharpoons \leftrightharpoons\rightharpoonup \rightharpoondown \leftharpoonup \leftharpoondown \upharpoonleft \upharpoonright \downharpoonleft \downharpoonright \rightleftharpoons \leftrightharpoons \,\!
\curvearrowleft \circlearrowleft \Lsh \upuparrows \rightrightarrows \rightleftarrows \rightarrowtail \looparrowright\curvearrowleft \circlearrowleft \Lsh \upuparrows \rightrightarrows \rightleftarrows \rightarrowtail \looparrowright \,\!
\curvearrowright \circlearrowright \Rsh \downdownarrows \leftleftarrows \leftrightarrows \leftarrowtail \looparrowleft\curvearrowright \circlearrowright \Rsh \downdownarrows \leftleftarrows \leftrightarrows \leftarrowtail \looparrowleft \,\!
\hookrightarrow \hookleftarrow \multimap \leftrightsquigarrow \rightsquigarrow \twoheadrightarrow \twoheadleftarrow \hookrightarrow \hookleftarrow \multimap \leftrightsquigarrow \rightsquigarrow \twoheadrightarrow \twoheadleftarrow \!
\amalg \P \S \% \dagger \ddagger \ldots \cdots \amalg \P \S \% \dagger \ddagger \ldots \cdots \!
\smile \frown \wr \triangleleft \triangleright\smile \frown \wr \triangleleft \triangleright\!
\diamondsuit, \heartsuit, \clubsuit, \spadesuit, \Game, \flat, \natural, \sharp \diamondsuit, \heartsuit, \clubsuit, \spadesuit, \Game, \flat, \natural, \sharp \!
\diagup \diagdown \centerdot \ltimes \rtimes \leftthreetimes \rightthreetimes \diagup \diagdown \centerdot \ltimes \rtimes \leftthreetimes \rightthreetimes \!
\eqcirc \circeq \triangleq \bumpeq \Bumpeq \doteqdot \risingdotseq \fallingdotseq \eqcirc \circeq \triangleq \bumpeq \Bumpeq \doteqdot \risingdotseq \fallingdotseq \!
\intercal \barwedge \veebar \doublebarwedge \between \pitchfork \intercal \barwedge \veebar \doublebarwedge \between \pitchfork \!
\vartriangleleft \ntriangleleft \vartriangleright \ntriangleright \vartriangleleft \ntriangleleft \vartriangleright \ntriangleright \!
\trianglelefteq \ntrianglelefteq \trianglerighteq \ntrianglerighteq \trianglelefteq \ntrianglelefteq \trianglerighteq \ntrianglerighteq \!

For a little more semantics on these symbols, see the brief TeX Cookbook.


Larger expressions

Subscripts, superscripts, integrals
Superscripta^2 \,\!
Subscripta_2 \,\!
Grouping10^{30} a^{2 2}\,\!
a_{i,j} b_{f'}\,\!
Combining sub & super without and with horizontal separationx_2^3 \,\!
{x_2}^3 \,\!
Super super10^{10^{8}} \,\!
Preceding and/or additional sub & super\sideset{_1^2}{_3^4}\prod_a^b \,\!
{}_1^2\!\Omega_3^4 \,\!
Stacking\overset{\alpha}{\omega} \,\!
\underset{\alpha}{\omega} \,\!
\overset{\alpha}{\underset{\gamma}{\omega}} \,\!
\stackrel{\alpha}{\omega} \,\!
Derivative (f in italics may overlap primes in HTML)x', y, f', f \!
Derivative (wrong in HTML)x^\prime, y^{\prime\prime} \!
Derivative (wrong in PNG)x\prime, y\prime\prime \!
Derivative dots\dot{x}, \ddot{x}
Underlines, overlines, vectors \hat a \ \bar b \ \vec c
\overrightarrow{a b} \ \overleftarrow{c d} \ \widehat{d e f}
\overline{g h i} \ \underline{j k l}
Arc (workaround)\overset{\frown} {AB}
Arrows A \xleftarrow{n \mu-1} B \xrightarrowT{n\pm i-1} C
Overbraces\overbrace{ 1 2 \cdots 100 }^{5050}
Underbraces\underbrace{ a b \cdots z }_{26}
Sum\sum_{k=1}^N k^2
Sum (force a^2)\textstyle \sum_{k=1}^N k^2
Sum in a fraction (default a_2)\frac{\sum_{k=1}^N k^2}{a}
Sum in a fraction (force 10^{30} a^{2 2})\frac{\displaystyle \sum_{k=1}^N k^2}{a}
Product\prod_{i=1}^N x_i
Product (force a_{i,j} b_{f'})\textstyle \prod_{i=1}^N x_i
Coproduct\coprod_{i=1}^N x_i
Coproduct (force x_2^3)\textstyle \coprod_{i=1}^N x_i
Limit\lim_{n \to \infty}x_n
Limit (force {x_2}^3)\textstyle \lim_{n \to \infty}x_n
Integral\int\limits_{1}^{3}\frac{e^3/x}{x^2}\, dx
Integral (alternative limits style)\int_{1}^{3}\frac{e^3/x}{x^2}\, dx
Integral (force 10^{10^{8}})\textstyle \int\limits_{-N}^{N} e^x\, dx
Integral (force \sideset{_1^2}{_3^4}\prod_a^b, alternative limits style)\textstyle \int_{-N}^{N} e^x\, dx
Double integral\iint\limits_D \, dx\,dy
Triple integral\iiint\limits_E \, dx\,dy\,dz
Quadruple integral\iiiint\limits_F \, dx\,dy\,dz\,dt
Line or path integral\int_{(x,y)\in C} x^3\, dx 4y^2\, dy
Closed line or path integral\oint_{(x,y)\in C} x^3\, dx 4y^2\, dy
Intersections\bigcap_{i=_1}^n E_i
Unions\bigcup_{i=_1}^n E_i


Fractions, matrices, multilines
Fractions{}_1^2\!\Omega_3^4 or \overset{\alpha}{\omega}\frac{2}{4}=0.5
Small fractions\underset{\alpha}{\omega}\tfrac{2}{4} = 0.5
Large (normal) fractions\overset{\alpha}{\underset{\gamma}{\omega}}\dfrac{2}{4} = 0.5 \qquad \dfrac{2}{c \dfrac{2}{d \dfrac{2}{4}}} = a
Large (nested) fractions\stackrel{\alpha}{\omega}\cfrac{2}{c \cfrac{2}{d \cfrac{2}{4}}} = a
Cancellations in fractions<nowiki></nowiki>\cfrac{x}{1 \cfrac{\cancel{y}}{\cancel{y}}} = \cfrac{x}{2}
Binomial coefficientsx^\prime, y^{\prime\prime}\binom{n}{k}
Small binomial coefficientsx\prime, y\prime\prime\tbinom{n}{k}
Large (normal) binomial coefficients\dot{x}, \ddot{x}\dbinom{n}{k}
Matrices
\begin{matrix}
     
x & y \\
z & v
     
\end{matrix}
\begin{matrix} x & y \\ z & v \end{matrix}
\begin{vmatrix}
     
x & y \\
z & v
     
\end{vmatrix}
\begin{vmatrix} x & y \\ z & v \end{vmatrix}
\begin{Vmatrix}
     
x & y \\
z & v
     
\end{Vmatrix}
\begin{Vmatrix} x & y \\ z & v \end{Vmatrix}
\begin{bmatrix}
     
0 & \cdots & 0 \\
\vdots & \ddots & \vdots \\
0 & \cdots & 0
     
\end{bmatrix}
\begin{bmatrix} 0 & \cdots & 0 \\ \vdots & \ddots & \vdots \\ 0 & \cdots & 0\end{bmatrix}
\begin{Bmatrix}
     
x & y \\
z & v
     
\end{Bmatrix}
\begin{Bmatrix} x & y \\ z & v \end{Bmatrix}
\begin{pmatrix}
     
x & y \\
z & v
     
\end{pmatrix}
\begin{pmatrix} x & y \\ z & v \end{pmatrix}
\bigl( \begin{smallmatrix}
     
a&b\\ c&d
     
\end{smallmatrix} \bigr)
\bigl( \begin{smallmatrix} a&b\\ c&d \end{smallmatrix} \bigr)
Case distinctions
f(n) =
\begin{cases}
     
n/2, & \text{if }n\text{ is even} \\
3n 1, & \text{if }n\text{ is odd}
     
\end{cases}
f(n) = \begin{cases} n/2, & \text{if }n\text{ is even} \\ 3n 1, & \text{if }n\text{ is odd} \end{cases}
Multiline equations
\begin{align}
     
f(x) & = (a b)^2 \\
& = a^2 2ab b^2 \\
     
\end{align}
\begin{align} f(x) & = (a b)^2 \\ & = a^2 2ab b^2 \\ \end{align}
\begin{alignat}{2}
     
f(x) & = (a-b)^2 \\
& = a^2-2ab b^2 \\
     
\end{alignat}
\begin{alignat}{2} f(x) & = (a-b)^2 \\ & = a^2-2ab b^2 \\ \end{alignat}
Multiline equations (must define number of columns used ({lcr}) (should not be used unless needed)
\begin{array}{lcl}
     
z & = & a \\
f(x,y,z) & = & x   y   z
     
\end{array}
\begin{array}{lcl} z & = & a \\ f(x,y,z) & = & x y z \end{array}
Multiline equations (more)
\begin{array}{lcr}
     
z & = & a \\
f(x,y,z) & = & x   y   z
     
\end{array}
\begin{array}{lcr} z & = & a \\ f(x,y,z) & = & x y z \end{array}
Breaking up a long expression so that it wraps when necessary, at the expense of destroying correct spacing
<math>
     
f(x) \,\!= \sum_{n=0}^\infty a_n x^n = a_0 a_1x a_2x^2 \cdots
Simultaneous equations
\begin{cases}
     
3x   5y   z \\
7x - 2y   4z \\
-6x   3y   2z
     
\end{cases}
\begin{cases} 3x 5y z \\ 7x - 2y 4z \\ -6x 3y 2z \end{cases}
Arrays
\begin{array}{
a & b & S \\ \hline 0&0&1\\ 0&1&1\\ 1&0&1\\ 1&1&0\\ \end{array} | \begin{array}
a & b & S \\ \hline 0&0&1\\ 0&1&1\\ 1&0&1\\ 1&1&0\\ \end{array} |}


Parenthesizing big expressions, brackets, bars
Bad\hat a \ \bar b \ \vec c( \frac{1}{2} )
Good\overrightarrow{a b} \ \overleftarrow{c d} \ \widehat{d e f}\left ( \frac{1}{2} \right )

You can use various delimiters with \left and \right:

Parentheses\overline{g h i} \ \underline{j k l}\left ( \frac{a}{b} \right )
Brackets\overset{\frown} {AB}\left \quad \left \lbrack \frac{a}{b} \right \rbrack
Braces A \xleftarrow{n \mu-1} B \xrightarrow[T]{n\pm i-1} C\left \{ \frac{a}{b} \right \} \quad \left \lbrace \frac{a}{b} \right \rbrace
Angle brackets\overbrace{ 1 2 \cdots 100 }^{5050}\left \langle \frac{a}{b} \right \rangle
Bars and double bars\underbrace{ a b \cdots z }_{26}
Floor and ceiling functions:\sum_{k=1}^N k^2\left \lfloor \frac{a}{b} \right \rfloor \left \lceil \frac{c}{d} \right \rceil
Slashes and backslashes\textstyle\left / \frac{a}{b} \right \backslash
Up, down and up-down arrows\textstyle \sum_{k=1}^N k^2 \left \uparrow \frac{a}{b} \right \downarrow \quad \left \Uparrow \frac{a}{b} \right \Downarrow \quad \left \updownarrow \frac{a}{b} \right \Updownarrow
Delimiters can be mixed,
as long as \left and \right match
\textstyle
\frac{\sum_{k=1}^N k^2}{a}
\left [ 0,1 \right )
\left \langle \psi \right >
Use \left. and \right. if you don't
want a delimiter to appear:
\displaystyle\left . \frac{A}{B} \right \} \to X
Size of the delimiters\frac{\displaystyle \sum_{k=1}^N k^2}{a}\big\{ \Big\{ \bigg\{ \Bigg\{ \dots \Bigg\rangle \bigg\rangle \Big\rangle \big\rangle
\prod_{i=1}^N x_i
\textstyle\big\lfloor \Big\lfloor \bigg\lfloor \Bigg\lfloor \dots \Bigg\rceil \bigg\rceil \Big\rceil \big\rceil
\textstyle \prod_{i=1}^N x_i\big\uparrow \Big\uparrow \bigg\uparrow \Bigg\uparrow \dots \Bigg\Downarrow \bigg\Downarrow \Big\Downarrow \big\Downarrow
\coprod_{i=1}^N x_i\big\updownarrow \Big\updownarrow \bigg\updownarrow \Bigg\updownarrow \dots \Bigg\Updownarrow \bigg\Updownarrow \Big\Updownarrow \big\Updownarrow
\textstyle\big / \Big / \bigg / \Bigg / \dots \Bigg\backslash \bigg\backslash \Big\backslash \big\backslash


Equation numbering
The templates and can be used to number equations. The template can be used to refer to a numbered equation from surrounding text. For example, the following syntax:

\textstyle \coprod_{i=1}^N x_i

produces the following result (note the equation number in the right margin):

Later on, the text can refer to this equation by its number using syntax like this:

\lim_{n \to \infty}x_n

The result looks like this:

As seen in equation (), blah blah blah...

Note that the equation number produced by is a link that the user can click to go immediately to the cited equation.


Alphabets and typefaces
cannot render arbitrary characters. Those it can handle can be entered by the expressions below. For others, such as , they can be entered as Unicode or HTML entities in running text, but cannot be used in displayed formulas.

\textstyle\Alpha \Beta \Gamma \Delta \Epsilon \Zeta \!
\textstyle \lim_{n \to \infty}x_n\Eta \Theta \Iota \Kappa \Lambda \Mu \!
\int\limits_{1}^{3}\frac{e^3/x}{x^2}\, dx\Nu \Xi \Pi \Rho \Sigma \Tau \!
\int_{1}^{3}\frac{e^3/x}{x^2}\, dx\Upsilon \Phi \Chi \Psi \Omega \!
\textstyle\alpha \beta \gamma \delta \epsilon \zeta \!
\textstyle \int\limits_{-N}^{N} e^x\, dx\eta \theta \iota \kappa \lambda \mu \!
\textstyle\nu \xi \pi \rho \sigma \tau \!
\textstyle \int_{-N}^{N} e^x\, dx\upsilon \phi \chi \psi \omega \!
\iint\limits_D \, dx\,dy\varepsilon \digamma \varkappa \varpi \!
\iiint\limits_E \, dx\,dy\,dz\varrho \varsigma \vartheta \varphi \!
\iiiint\limits_F \, dx\,dy\,dz\,dt\aleph \beth \gimel \daleth \!
\int_{(x,y)\in C} x^3\, dx 4y^2\, dy\mathbb{A} \mathbb{B} \mathbb{C} \mathbb{D} \mathbb{E} \mathbb{F} \mathbb{G} \!
\oint_{(x,y)\in C} x^3\, dx 4y^2\, dy\mathbb{H} \mathbb{I} \mathbb{J} \mathbb{K} \mathbb{L} \mathbb{M} \!
\bigcap_{i=_1}^n E_i\mathbb{N} \mathbb{O} \mathbb{P} \mathbb{Q} \mathbb{R} \mathbb{S} \mathbb{T} \!
\bigcup_{i=_1}^n E_i\mathbb{U} \mathbb{V} \mathbb{W} \mathbb{X} \mathbb{Y} \mathbb{Z} \!
\frac{2}{4}=0.5\mathbf{A} \mathbf{B} \mathbf{C} \mathbf{D} \mathbf{E} \mathbf{F} \mathbf{G} \!
{2 \over 4}=0.5\mathbf{H} \mathbf{I} \mathbf{J} \mathbf{K} \mathbf{L} \mathbf{M} \!
\tfrac{2}{4} = 0.5\mathbf{N} \mathbf{O} \mathbf{P} \mathbf{Q} \mathbf{R} \mathbf{S} \mathbf{T} \!
\dfrac{2}{4} = 0.5 \qquad \dfrac{2}{c \dfrac{2}{d \dfrac{2}{4}}} = a \mathbf{U} \mathbf{V} \mathbf{W} \mathbf{X} \mathbf{Y} \mathbf{Z} \!
\cfrac{2}{c \cfrac{2}{d \cfrac{2}{4}}} = a\mathbf{a} \mathbf{b} \mathbf{c} \mathbf{d} \mathbf{e} \mathbf{f} \mathbf{g} \!
\cfrac{x}{1 \cfrac{\cancel{y}}{\cancel{y}}} = \cfrac{x}{2}\mathbf{h} \mathbf{i} \mathbf{j} \mathbf{k} \mathbf{l} \mathbf{m} \!
\binom{n}{k}\mathbf{n} \mathbf{o} \mathbf{p} \mathbf{q} \mathbf{r} \mathbf{s} \mathbf{t} \!
\tbinom{n}{k}\mathbf{u} \mathbf{v} \mathbf{w} \mathbf{x} \mathbf{y} \mathbf{z} \!
\dbinom{n}{k}\mathbf{0} \mathbf{1} \mathbf{2} \mathbf{3} \mathbf{4} \!
( \frac{1}{2} )\mathbf{5} \mathbf{6} \mathbf{7} \mathbf{8} \mathbf{9} \!
\left ( \frac{1}{2} \right )\boldsymbol{\Alpha} \boldsymbol{\Beta} \boldsymbol{\Gamma} \boldsymbol{\Delta} \boldsymbol{\Epsilon} \boldsymbol{\Zeta} \!
\left ( \frac{a}{b} \right )\boldsymbol{\Eta} \boldsymbol{\Theta} \boldsymbol{\Iota} \boldsymbol{\Kappa} \boldsymbol{\Lambda} \boldsymbol{\Mu} \!
\left [ \frac{a}{b} \right ] \quad \left \lbrack \frac{a}{b} \right \rbrack\boldsymbol{\Nu} \boldsymbol{\Xi} \boldsymbol{\Pi} \boldsymbol{\Rho} \boldsymbol{\Sigma} \boldsymbol{\Tau} \!
\left \{ \frac{a}{b} \right \} \quad \left \lbrace \frac{a}{b} \right \rbrace\boldsymbol{\Upsilon} \boldsymbol{\Phi} \boldsymbol{\Chi} \boldsymbol{\Psi} \boldsymbol{\Omega} \!
\left \langle \frac{a}{b} \right \rangle\boldsymbol{\alpha} \boldsymbol{\beta} \boldsymbol{\gamma} \boldsymbol{\delta} \boldsymbol{\epsilon} \boldsymbol{\zeta} \!
<nowiki></nowiki>\boldsymbol{\eta} \boldsymbol{\theta} \boldsymbol{\iota} \boldsymbol{\kappa} \boldsymbol{\lambda} \boldsymbol{\mu} \!
\left \lfloor \frac{a}{b} \right \rfloor \left \lceil \frac{c}{d} \right \rceil\boldsymbol{\nu} \boldsymbol{\xi} \boldsymbol{\pi} \boldsymbol{\rho} \boldsymbol{\sigma} \boldsymbol{\tau} \!
\left / \frac{a}{b} \right \backslash\boldsymbol{\upsilon} \boldsymbol{\phi} \boldsymbol{\chi} \boldsymbol{\psi} \boldsymbol{\omega} \!
\left \uparrow \frac{a}{b} \right \downarrow \quad \left \Uparrow \frac{a}{b} \right \Downarrow \quad \left \updownarrow \frac{a}{b} \right \Updownarrow\boldsymbol{\varepsilon} \boldsymbol{\digamma} \boldsymbol{\varkappa} \boldsymbol{\varpi} \!
<nowiki></nowiki>\boldsymbol{\varrho} \boldsymbol{\varsigma} \boldsymbol{\vartheta} \boldsymbol{\varphi} \!
<nowiki></nowiki>\mathit{0} \mathit{1} \mathit{2} \mathit{3} \mathit{4} \!
\left . \frac{A}{B} \right \} \to X\mathit{5} \mathit{6} \mathit{7} \mathit{8} \mathit{9} \!
\big( \Big( \bigg( \Bigg( \dots \Bigg] \bigg] \Big] \big]/<code> | <math>\big( \Big( \bigg( \Bigg( \dots \Bigg] \bigg] \Big] \big]</math> |- | <code>\big\{ \Big\{ \bigg\{ \Bigg\{ \dots \Bigg\rangle \bigg\rangle \Big\rangle \big\rangle\mathit{\Alpha} \mathit{\Beta} \mathit{\Gamma} \mathit{\Delta} \mathit{\Epsilon} \mathit{\Zeta} \!
<nowiki></nowiki>\mathit{\Eta} \mathit{\Theta} \mathit{\Iota} \mathit{\Kappa} \mathit{\Lambda} \mathit{\Mu} \!
\big\lfloor \Big\lfloor \bigg\lfloor \Bigg\lfloor \dots \Bigg\rceil \bigg\rceil \Big\rceil \big\rceil\mathit{\Nu} \mathit{\Xi} \mathit{\Pi} \mathit{\Rho} \mathit{\Sigma} \mathit{\Tau} \!
\big\uparrow \Big\uparrow \bigg\uparrow \Bigg\uparrow \dots \Bigg\Downarrow \bigg\Downarrow \Big\Downarrow \big\Downarrow\mathit{\Upsilon} \mathit{\Phi} \mathit{\Chi} \mathit{\Psi} \mathit{\Omega} \!
\big\updownarrow \Big\updownarrow \bigg\updownarrow \Bigg\updownarrow \dots \Bigg\Updownarrow \bigg\Updownarrow \Big\Updownarrow \big\Updownarrow\mathrm{A} \mathrm{B} \mathrm{C} \mathrm{D} \mathrm{E} \mathrm{F} \mathrm{G} \!
\big / \Big / \bigg / \Bigg / \dots \Bigg\backslash \bigg\backslash \Big\backslash \big\backslash\mathrm{H} \mathrm{I} \mathrm{J} \mathrm{K} \mathrm{L} \mathrm{M} \!
<nowiki></nowiki>\mathrm{N} \mathrm{O} \mathrm{P} \mathrm{Q} \mathrm{R} \mathrm{S} \mathrm{T} \!
<nowiki></nowiki>\mathrm{U} \mathrm{V} \mathrm{W} \mathrm{X} \mathrm{Y} \mathrm{Z} \!
<nowiki></nowiki>\mathrm{a} \mathrm{b} \mathrm{c} \mathrm{d} \mathrm{e} \mathrm{f} \mathrm{g} \!
<nowiki></nowiki>\mathrm{h} \mathrm{i} \mathrm{j} \mathrm{k} \mathrm{l} \mathrm{m} \!
<nowiki></nowiki>\mathrm{n} \mathrm{o} \mathrm{p} \mathrm{q} \mathrm{r} \mathrm{s} \mathrm{t} \!
<nowiki></nowiki>\mathrm{u} \mathrm{v} \mathrm{w} \mathrm{x} \mathrm{y} \mathrm{z} \!
<nowiki></nowiki>\mathrm{0} \mathrm{1} \mathrm{2} \mathrm{3} \mathrm{4} \!
<nowiki></nowiki>\mathrm{5} \mathrm{6} \mathrm{7} \mathrm{8} \mathrm{9} \!
<nowiki></nowiki>\mathsf{A} \mathsf{B} \mathsf{C} \mathsf{D} \mathsf{E} \mathsf{F} \mathsf{G} \!
<nowiki></nowiki>\mathsf{H} \mathsf{I} \mathsf{J} \mathsf{K} \mathsf{L} \mathsf{M} \!
<nowiki></nowiki>\mathsf{N} \mathsf{O} \mathsf{P} \mathsf{Q} \mathsf{R} \mathsf{S} \mathsf{T} \!
<nowiki></nowiki>\mathsf{U} \mathsf{V} \mathsf{W} \mathsf{X} \mathsf{Y} \mathsf{Z} \!
<nowiki></nowiki>\mathsf{a} \mathsf{b} \mathsf{c} \mathsf{d} \mathsf{e} \mathsf{f} \mathsf{g} \!
<nowiki></nowiki>\mathsf{h} \mathsf{i} \mathsf{j} \mathsf{k} \mathsf{l} \mathsf{m} \!
<nowiki></nowiki>\mathsf{n} \mathsf{o} \mathsf{p} \mathsf{q} \mathsf{r} \mathsf{s} \mathsf{t} \!
<nowiki></nowiki>\mathsf{u} \mathsf{v} \mathsf{w} \mathsf{x} \mathsf{y} \mathsf{z} \!
<nowiki></nowiki>\mathsf{0} \mathsf{1} \mathsf{2} \mathsf{3} \mathsf{4} \!
<nowiki></nowiki>\mathsf{5} \mathsf{6} \mathsf{7} \mathsf{8} \mathsf{9} \!
<nowiki></nowiki>\mathcal{A} \mathcal{B} \mathcal{C} \mathcal{D} \mathcal{E} \mathcal{F} \mathcal{G} \!
<nowiki></nowiki>\mathcal{H} \mathcal{I} \mathcal{J} \mathcal{K} \mathcal{L} \mathcal{M} \!
<nowiki></nowiki>\mathcal{N} \mathcal{O} \mathcal{P} \mathcal{Q} \mathcal{R} \mathcal{S} \mathcal{T} \!
<nowiki></nowiki>\mathcal{U} \mathcal{V} \mathcal{W} \mathcal{X} \mathcal{Y} \mathcal{Z} \!
<nowiki></nowiki>\mathfrak{A} \mathfrak{B} \mathfrak{C} \mathfrak{D} \mathfrak{E} \mathfrak{F} \mathfrak{G} \!
<nowiki></nowiki>\mathfrak{H} \mathfrak{I} \mathfrak{J} \mathfrak{K} \mathfrak{L} \mathfrak{M} \!
<nowiki></nowiki>\mathfrak{N} \mathfrak{O} \mathfrak{P} \mathfrak{Q} \mathfrak{R} \mathfrak{S} \mathfrak{T} \!
<nowiki></nowiki>\mathfrak{U} \mathfrak{V} \mathfrak{W} \mathfrak{X} \mathfrak{Y} \mathfrak{Z} \!
<nowiki></nowiki>\mathfrak{a} \mathfrak{b} \mathfrak{c} \mathfrak{d} \mathfrak{e} \mathfrak{f} \mathfrak{g} \!
<nowiki></nowiki>\mathfrak{h} \mathfrak{i} \mathfrak{j} \mathfrak{k} \mathfrak{l} \mathfrak{m} \!
<nowiki></nowiki>\mathfrak{n} \mathfrak{o} \mathfrak{p} \mathfrak{q} \mathfrak{r} \mathfrak{s} \mathfrak{t} \!
<nowiki></nowiki>\mathfrak{u} \mathfrak{v} \mathfrak{w} \mathfrak{x} \mathfrak{y} \mathfrak{z} \!
<nowiki></nowiki>\mathfrak{0} \mathfrak{1} \mathfrak{2} \mathfrak{3} \mathfrak{4} \!
<nowiki></nowiki>\mathfrak{5} \mathfrak{6} \mathfrak{7} \mathfrak{8} \mathfrak{9} \!


Mixed text faces
Italicised characters (spaces are ignored)<nowiki></nowiki>x y zx y z\!
Non-italicised characters<nowiki></nowiki>\text{x y z}\text{x y z}\!
Mixed italics (bad)<nowiki></nowiki>\text{if} n \text{is even} \text{if} n \text{is even} \!
Mixed italics (good)<nowiki></nowiki>\text{if }n\text{ is even}\text{if }n\text{ is even}\!
Mixed italics (alternative: ~ or "\ " forces a space)<nowiki></nowiki>\text{if}~n\ \text{is even} \text{if}~n\ \text{is even} \!


Color
Equations can use color:
  • <nowiki></nowiki>
  • : {\color{Blue}x^2} {\color{YellowOrange}2x}-{\color{OliveGreen}1}
  • <nowiki></nowiki>
  • : x_{1,2}=\frac{-b\pm\sqrt{\color{Red}b^2-4ac}}{2a}

It is also possible to change the background color (since ), as in the following example. Note that in the second row, the text is actually rendered in black, but shows orange color fringes because the rendered PNG image generates antialising according to the declared background, instead of generating semi-transparent black pixels ; similar problems occur on the third and fourth rows (with black background) where the antialising pixels are even more visible because they are opaque but show shades between the black color of glyphs and the background color assumed by TeX. In all these cases, PNG images do not contain a true alpha channel render them correctly according to the effective background on which the image will be drawn. To solve this rendering problem, you still need to declare the background color of the cell in CSS style for the HTML code, as well as within the TeX code, each time the background color of the cell is not white, as shown in the last row where the orange backgrounds are declared in both places:

<nowiki></nowiki>\definecolor{orange}{RGB}{255,165,0}\pagecolor{orange}e^{i \pi} 1 = 0\,\!Bad
<nowiki></nowiki>\definecolor{orange}{RGB}{255,165,0}\pagecolor{orange}e^{i \pi} 1 = 0\,\!Bad
<nowiki></nowiki>\definecolor{orange}{RGB}{255,165,0}\pagecolor{orange}e^{i \pi} 1 = 0\,\!Good

Some color names are predeclared according to the following table, you can use them directly for the rendering of formulas or for declaring the intended color of the page background.

Colors supported
\color{Black}\text{Black}
\color{BrickRed}\text{BrickRed}
\color{CarnationPink}\text{CarnationPink}
\color{Dandelion}\text{Dandelion}
\color{Fuchsia}\text{Fuchsia}
\color{GreenYellow}\text{GreenYellow}
\color{Magenta}\text{Magenta}
\color{MidnightBlue}\text{MidnightBlue}
\color{Orange}\text{Orange}
\color{Periwinkle}\text{Periwinkle}
\color{Purple}\text{Purple}
\color{RedViolet}\text{RedViolet}
\color{RubineRed}\text{RubineRed}
\color{SkyBlue}\text{SkyBlue}
\color{Thistle}\text{Thistle}
\pagecolor{Black}\color{White}\text{White}
\color{YellowOrange}\text{YellowOrange}

Note that color should not be used as the only way to identify something, because it will become meaningless on black-and-white media or for color-blind people. See .


Formatting issues

Spacing
Note that handles most spacing automatically, but you may sometimes want manual control.

double quad space<nowiki></nowiki>a \qquad b
quad space<nowiki></nowiki>a \quad b
text space<nowiki></nowiki>a\ b
text space without PNG conversion<nowiki></nowiki>a \mbox{ } b
large space<nowiki></nowiki>a\;b
medium space<nowiki></nowiki>not
small space<nowiki></nowiki>a\,b
no space<nowiki></nowiki>ab\,
small negative space<nowiki></nowiki>a\!b

Automatic spacing may be broken in very long expressions (because they produce an overfull hbox in ):

<nowiki></nowiki>
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 \cdots

This can be remedied by putting a pair of braces { } around the whole expression:

<nowiki></nowiki>
{0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 \cdots}


Alignment with normal text flow
Due to the default CSS

img.tex { vertical-align: middle; }

an inline expression like \int_{-N}^{N} e^x\, dx should look good.

If you need to align it otherwise, use <nowiki></nowiki> and play with the <nowiki></nowiki> argument until you get it right; however, how it looks may depend on the browser and the browser settings.

Also note that if you rely on this workaround, if/when the rendering on the server gets fixed in future releases, as a result of this extra manual offset your formulae will suddenly be aligned incorrectly. So use it sparingly, if at all.


Commutative diagrams
To make a , there are three steps:

  1. write the diagram in
  2. convert to
  3. to


Diagrams in
Xy-pic ( online manual) is the most powerful and general-purpose diagram package in .

Simpler packages include:

The following is a template for Xy-pic, together with a to increase the in , so that the diagram is not truncated by over-eager cropping (suggested in : TUGboat, Volume 17 1996, No. 3):

\documentclass{amsart}
\usepackageall,{xy} % Loading the XY-Pic package
     
% Using postscript driver for smoother curves
     
\usepackage{color} % For invisible frame \begin{document} \thispagestyle{empty} % No page numbers \SelectTips{eu}{} % Euler arrowheads (tips) \setlength{\fboxsep}{0pt} % Frame box margin {\color{white}\framebox} % end math, end frame \end{document}


Convert to SVG
Once you have produced your diagram in LaTeX (or TeX), you can convert it to an SVG file using the following sequence of commands:

pdflatex file.tex
pdfcrop --clip file.pdf tmp.pdf
pdf2svg tmp.pdf file.svg
(rm tmp.pdf at the end)
     

If you do not have pdflatex (which is unlikely) you can also use the commands

latex file.tex
dvipdfm file.dvi
     

to get a PDF version of your diagram. The pdfcrop and pdf2svg utilities are needed for this procedure.

In general, you will not be able to get anywhere with diagrams without and Ghostscript, and the <nowiki></nowiki> program is a useful tool for creating or modifying your diagrams by hand. There is also a utility <nowiki></nowiki> which supports direct conversion from Postscript files to many vector graphics formats, but it requires a non-free plugin to convert to SVG, and regardless of the format, has not been successful in using it to convert diagrams with diagonal arrows from TeX-created files.

These programs are:


Upload the file
As the diagram is your own work, upload it to , so that all projects (notably, all languages) can use it without having to copy it to their language's Wiki. (If you've previously uploaded a file to somewhere other than Commons, to Commons.)

Check size
Before uploading, check that the default size of the image is neither too large nor too small by opening in an and viewing at default size (100% scaling), otherwise adjust the -y option to dvips.
Name
Make sure the file has a [[Wikipedia

Now go to the and add a , including the source code, using this template:

</math>Information
|Description =
<math alt="Square root of pi">\sqrt{\pi}</math>en| '''Description <math title="pi">\pi</math>:en:Link to WP page|topic]]'''
}}
|Source=Created as per: <math>\text{abc}</math>:en:meta:Help:Displaying a formula#Commutative diagrams]]
<pre>
'''% TeX source here'''
</pre>
|Date = '''The Creation Date, like 1999-12-31'''
|Author = '''<math>User:YourUserName|Your Real Name]]'''
|Permission = <math>\begin{align}
\text{ AaȦȧÄäÁáÀàĀāÂâǍǎĂăÃãÅåẠạ } & \text{ ÆæǼǽ BbḂḃḄḅḆḇ CcĊċĆćĈĉČč Çç DdḊḋĎďḎḏḌḍ Ḑḑ } \\
\text{ EeĖėËëÉéÈèĒēÊêĚěĔĕẼẽẸẹ Ȩȩ } & \text{ FfḞḟ GgĠġḠḡĜĝǦǧĞğ HhḢḣḦḧĤĥȞȟḤḥẖḪḫ Ḩḩ } \\
\text{ IıİiÏïÍíÌìĪīÎîǏǐĬĭĨĩỊị } & \text{ JjĴĵ KkḰḱǨǩḲḳḴḵ Ķķ LlĹ弾ḶḷḺḻ ĻļŁł } \\
& \text{ MmṀṁḾḿṂṃ NnṄṅŃńŇňÑñṆṇṈṉ Ņņ} \\
\text{ OoȮȯÖöÓóÒòŌōÔôǑǒŎŏÕõỌọ } & \text{ ØøǾǿ Œœ PpṖṗṔṕ Qq RrṘṙŔŕŘřṚṛṞṟ Ŗŗ } \\
& \text{ SsṠṡŚśŜŝŠšṢṣ Şş ß TtṪṫẗŤťṬṭṮṯȚț Ţţ } \\
\text{ UuÜüÚúŰűÙùŪūÛûǓǔŬŭŨũŮůỤụ } & \text{ VvṼṽṾṿ WwẆẇẄẅẂẃẀẁŴŵẈẉẘ XxẊẋẌẍ } \\
\text{ YyẎẏŸÿÝýỲỳȲȳŶŷỸỹẙỴỵ } & \text{ ZzŻżŹźẐẑŽžẒẓẔẕ ·×÷ } \\
\end{align}</math>self|PD-self '''(or [[commons:Licensing#Well-known licenses|other license]])'''|author='''<math>\begin{align}
\mbox{ AaȦȧÄäÁáÀàĀāÂâǍǎĂăÃãÅåẠạ } & \text{ ÆæǼǽ BbḂḃḄḅḆḇ CcĊċĆćĈĉČč Çç DdḊḋĎďḎḏḌḍ Ḑḑ } \\
\mbox{ EeĖėËëÉéÈèĒēÊêĚěĔĕẼẽẸẹ Ȩȩ } & \text{ FfḞḟ GgĠġḠḡĜĝǦǧĞğ HhḢḣḦḧĤĥȞȟḤḥẖḪḫ Ḩḩ } \\
\mbox{ IıİiÏïÍíÌìĪīÎîǏǐĬĭĨĩỊị } & \text{ JjĴĵ KkḰḱǨǩḲḳḴḵ Ķķ LlĹ弾ḶḷḺḻ ĻļŁł } \\
& \text{ MmṀṁḾḿṂṃ NnṄṅŃńŇňÑñṆṇṈṉ Ņņ } \\
\mbox{ OoȮȯÖöÓóÒòŌōÔôǑǒŎŏÕõỌọ } & \text{ ØøǾǿ Œœ PpṖṗṔṕ Qq RrṘṙŔŕŘřṚṛṞṟ Ŗŗ } \\
& \text{ SsṠṡŚśŜŝŠšṢṣ Şş ß TtṪṫẗŤťṬṭṮṯȚț Ţţ } \\
\mbox{ UuÜüÚúŰűÙùŪūÛûǓǔŬŭŨũŮůỤụ } & \text{ VvṼṽṾṿ WwẆẇẄẅẂẃẀẁŴŵẈẉẘ XxẊẋẌẍ } \\
\text{ YyẎẏŸÿÝýỲỳȲȳŶŷỸỹẙỴỵ } & \text{ ZzŻżŹźẐẑŽžẒẓẔẕ ·×÷ } \\
\end{align}</math>User:YourUserName|Your Real Name]]'''}}
}}
     
<math>\alpha\,\!</math>

Source code
  • Include the source code in the , in the Source section of the template, so that the diagram can be edited in future.
  • Include the complete .tex file, not just the fragment, so future editors do not need to reconstruct a compilable file.
  • (Don't include it in the Summary section, which is just supposed to be a summary.)
Description
If possible, link to a Wikipedia page relevant to the diagram.
Category
Include {{math|<VAR>&amp;alpha;</VAR>}}, so that it appears in [[commons
Include image
Now include the image on the original page via <math> f(x) = x^2\,\!</math>


Examples
A sample conforming diagram is .


Unimplemented elements and workarounds

<nowiki></nowiki> and <nowiki></nowiki>
Elements which are not yet implemented are <nowiki></nowiki>, a two-fold integral <nowiki></nowiki> with a circular curve through the centre of the two integrals, and similarly <nowiki></nowiki>, a circular curve through three integrals. In contrast, <nowiki></nowiki> exists for the single dimension (integration over a curved line within a plane or any space with higher dimension).

These elements appear in many contexts: <nowiki></nowiki> denotes a over the closed 2d boundary of a 3d region (which occurs in much of 3d and physical applications – like ), likewise <nowiki></nowiki> denotes integration over the closed 3d boundary (surface volume) of a 4d region, and they would be strong candidates for the next version. As such there are a lot of workarounds in the present version.

>
<nowiki></nowiki> looks like:

  • \iint\limits_{S}\!\!\!\!\!\!\!\!\!\!\!\subset\!\supset \mathbf D \cdot \mathrm{d}\mathbf A​, which uses <nowiki></nowiki> along with <nowiki></nowiki> and <nowiki></nowiki> (overdrawn after backspacing):
<nowiki></nowiki>
  • \int\!\!\!\!\int_{\partial V}\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\;\;\;\bigcirc\,\,\mathbf D\cdot\mathrm{d}\mathbf A, which uses <nowiki></nowiki> twice (with some backward ) along with <nowiki></nowiki> (also overdrawn after backpacing) to produce a more consistent circle:
<nowiki></nowiki>

<nowiki></nowiki> (should also be preferably more tightly kerned) looks more or less like:

  • \int\!\!\!\!\!\int\!\!\!\!\!\int_{\partial V}\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\;\;\;\subset\!\supset \mathbf D\cdot\mathrm{d}\mathbf A which uses three \int symbols (with more backward kerning) with \subset and \supset (overdrawn after backspacing):
<nowiki></nowiki>
  • \int\!\!\!\!\!\int\!\!\!\!\!\int_{\partial V}\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\;\;\;\bigcirc\,\,\mathbf D\;\cdot\mathrm{d}\mathbf A, which uses three x y z symbols (with more backward kerning) along with \text{x y z} (also overdrawn after backspacing):
\text{if} n \text{is even}

However, since no standardisation exists as yet, any workaround like this (which uses many \text{if }n\text{ is even} symbols for backspacing) should be avoided, if possible. See below for a possibility using PNG image enforcement.

Note that \text{if}~n\ \text{is even} (the double integral) and {\color{Blue}x^2} {\color{YellowOrange}2x}-{\color{OliveGreen}1} (the triple integral) are still not kerned as they should preferably be, and are currently rendered as if they were successive x_{1,2}=\frac{-b\pm\sqrt{\color{Red}b^2-4ac}}{2a} symbols ; this is not a major problem for reading the formulas, even if the integral symbols before the last one do not have bounds, so it's best to avoid backspacing "hacks" as they may be inconsistent with a possible future better implementation of integrals symbols (with more precisely computed kerning positions).


e^{i \pi} 1 = 0 and '''\definecolor{orange}{RGB}{255,165,0}\pagecolor{orange}'''e^{i \pi} 1 = 0 as PNG images
These symbols are available as PNG images which are also integrated into two templates, and , which take care of the formatting around the symbols.

The templates have three parameters:

  • preintegral the text or formula immediately before the integral
  • intsubscpt the subscript below the integral
  • integrand the text or formula immediately after the integral

Examples

  • correction: '''\definecolor{orange}{RGB}{255,165,0}\pagecolor{orange}'''e^{i \pi} 1 = 0

{\partial t} \right ) \cdot {\rm d}\bold{S}


Oriented '''\definecolor{orange}{RGB}{255,165,0}\pagecolor{orange}'''e^{i \pi} 1 = 0 and <nowiki></nowiki> as PNG images
Some variants of <nowiki></nowiki> and <nowiki></nowiki> have arrows on them to indicate the sense of integration, such as a line integral around a closed curve in the clockwise sense, and higher dimensional analogues. These are not implemented in on Wikipedia either, although the template is available - see link for details.


<nowiki></nowiki>
<nowiki></nowiki> is not yet implemented to display the arc notation. However, there exists a workaround: use <nowiki></nowiki>, which gives

\overset{\frown}{AB}


Enforcing PNG images?
Moreover, although for other symbols the HTML substitute does not show a similar bug, the corresponding text should be looked upon very critically, since the HTML-symbols, although not obviously wrong, may look rather ugly to some, so that an enforced PNG-image is often preferable.

However, generally image-enforcing should be avoided. Often the best choice is to use neither symbols nor the HTML substitutes, but instead the simple ASCII symbols offered by a standard keyboard: a good example is the quantity , which might be given in (if necessary with an enforcement) by v\!, with the HTML substitute v (which, by the way, should not be mixed up with the Greek letter "\nu" \nu\!), and the ASCII letters v or V (i.e., one puts, at first, two primes for italic style, followed by the simple ASCII letter v or V, finally again two primes).

For vector or tensor quantities, one can use again ASCII letters plus three primes for bold printing.

Note also that the default HTML rendering of mathematic expressions (when they are possible) uses the default text font, weight, style and size for variable names. Some mathematical expressions need differences between these styles; for consistency with the more complex formulas using the same variables that can be rendered only as PNG, it may be necessary to enforce the PNG rendering also for isolated variables found in the article text (using one of the special spaces that remain invisible on the left or right of the expression and that force the PNG rendering wherever they occur in the expression, notably the backspace "\!").


Examples of implemented formulas

Quadratic polynomial
ax^2   bx   c = 0
     
{{math|''f''(<var>x</var>) {{=}} <var>x</var><sup>2</sup>}}


Quadratic formula
x={-b\pm\sqrt{b^2-4ac} \over 2a}
     
<math>\sqrt{2}</math>


Tall parentheses and fractions
2 = \left( \frac{\left(3-x\right) \times 2}{3-x} \right)
     
{{math|{{radical|2}}}}

S_{\text{new}} = S_{\text{old}} - \frac{ \left( 5-T \right) ^2} {2}
<math>\sqrt{1-e^2}</math>
     


Integrals
\int_a^x \!\!\!\int_a^s f(y)\,dy\,ds = \int_a^x f(y)(x-y)\,dy
     
{{math|{{radical|1 &amp;minus; ''e''&amp;sup2;}}}}


Matrices and determinants
\det(\mathsf{A}-\lambda\mathsf{I}) = 0
     
{{math|''i''}}


Summation
\sum_{i=0}^{n-1} i
     
{{math|<var>i</var>}}

\sum_{m=1}^\infty\sum_{n=1}^\infty\frac{m^2\,n}{3^m\left(m\,3^n n\,3^m\right)}
     
<math>x</math>


Differential equation
u''   p(x)u'   q(x)u=f(x),\quad x>a
     
{{math|<var>x</var>}}


Complex numbers
|\bar{z}| = |z|, |(\bar{z})^n| = |z|^n, \arg(z^n) = n \arg(z)
     
x', y'', f', f''


Limits
\lim_{z\rightarrow z_0} f(z)=f(z_0)
     
<math>f(x) \,\!</math> <math>= \sum_{n=0}^\infty a_n x^n </math> <math>= a_0 a_1x a_2x^2 \cdots</math>


Integral equation
\phi_n(\kappa)
= \frac{1}{4\pi^2\kappa^2} \int_0^\infty \frac{\sin(\kappa R)}{\kappa R} \frac{\partial}{\partial R} \left[R^2\frac{\partial D_n(R)}{\partial R}\right]\,dR
     
\left | \frac{a}{b} \right \vert \left \Vert \frac{c}{d} \right \|


Example
\phi_n(\kappa) = 0.033C_n^2\kappa^{-11/3},\quad \frac{1}{L_0}\ll\kappa\ll\frac{1}{l_0}
     
\left [ 0,1 \right )


Continuation and cases
f(x) = \begin{cases}1 & -1 \le x < 0 \\
\frac{1}{2} & x = 0 \\ 1 - x^2 & \text{otherwise}\end{cases}
     
\left \langle \psi \right |


Prefixed subscript
{}_pF_q(a_1,\dots,a_p;c_1,\dots,c_q;z) = \sum_{n=0}^\infty \frac{(a_1)_n\cdots(a_p)_n}{(c_1)_n\cdots(c_q)_n}\frac{z^n}{n!}
     
\big\| \Big\| \bigg\| \Bigg\| \dots \Bigg| \bigg| \Big| \big|


Fraction and small fraction
\frac{a}{b}\ \tfrac{a}{b}
{{NumBlk|:|<math>x^2   y^2   z^2 = 1 \,</math>|{{EquationRef|1}}}}
     


Area of a quadrilateral
S=dD\,\sin\alpha\!
As seen in equation ({{EquationNote|1}}), blah blah blah...
     


Volume of a sphere-stand
V=\frac16\pi h\left[3\left(r_1^2 r_2^2\right) h^2\right]
\Alpha \Beta \Gamma \Delta \Epsilon \Zeta 
     


Multiple equations
\begin{align}
 u & = \tfrac{1}{\sqrt{2}}(x y) \qquad & x &= \tfrac{1}{\sqrt{2}}(u v)\\
 v & = \tfrac{1}{\sqrt{2}}(x-y) \qquad & y &= \tfrac{1}{\sqrt{2}}(u-v)
\end{align}
 
\Eta \Theta \Iota \Kappa \Lambda \Mu 
     


See also


External links
  • A LaTeX tutorial
  • . A paper introducing TeX — see page 39 onwards for a good introduction to the maths side of things.

  • . A paper introducing LaTeX — skip to page 49 for the math section. See page 63 for a complete reference list of symbols included in LaTeX and AMS-LaTeX.


References
    ^ (1973). 9780716703440, W. H. Freeman & Co.

Account

Social:
Pages:  ..   .. 
Items:  .. 

Navigation

General: Atom Feed Atom Feed  .. 
Help:  ..   .. 
Category:  ..   .. 
Media:  ..   .. 
Posts:  ..   ..   .. 

Statistics

Page:  .. 
Summary:  .. 
1 Tags
10/10 Page Rank
2249 Page Refs
5s Time